import Mock from 'mockjs';

Mock.mock(
  'http://202.120.40.87:14642/api/history',
  'get',
  () => ({
    status: '200',
    message: 'success',
    data: {
      0: [
        {
          id: '5dce11389c679d7f225e4851',
          process: '5dccc0e35548d6161841252d',
          processName: 'test',
          owner: '123',
          start: '2019-11-15T02:45:12.070+0000',
          status: 1,
        },
      ],
      1: [
        {
          id: '5dce25a1d32c4a09cae8a990',
          process: '5dccc0e35548d6161841252d',
          processName: 'test',
          owner: '123',
          start: '2019-11-15T04:12:17.785+0000',
          status: 1,
        },
        {
          id: '5dce272ad32c4a09cae8a994',
          process: '5dccc0e35548d6161841252d',
          processName: 'test',
          owner: '123',
          start: '2019-11-15T04:18:50.950+0000',
          status: 1,
        },
      ],
    },
  }),
);
